<?php
/* @var $this TypeinterventionController */
/* @var $model TYPEINTERVENTION */

$this->breadcrumbs=array(
	'Typeinterventions'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'Ajouter un type d\'intervention', 'url'=>array('typeintervention/create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#typeintervention-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h2>Types d'intervention</h2>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'typeintervention-grid',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		'ID_INTERVENTION',
		'LIBELLE_INTERVENTION',
		'DESCRIPTION_INTERVENTION',
		array(
			'class'=>'CButtonColumn',
			'viewButtonUrl'=>'Yii::app()->createUrl("typeintervention/view",array("id"=>$data->primaryKey))',
			'updateButtonUrl'=>'Yii::app()->createUrl("typeintervention/update",array("id"=>$data->primaryKey))',
			'deleteButtonUrl'=>'Yii::app()->createUrl("typeintervention/delete",array("id"=>$data->primaryKey))',
		),
	),
)); ?>
